<script setup lang="ts">
//品牌故事
import List from "@/components/index/StoriesList.vue";
import LOGO from "@/assets/images/store-logo.svg";
</script>
<template>
  <section class="stories-module">
    <div class="section-content">
      <!--LOGO-->
      <div class="lockup-stories">
        <figure class="logo"><img :src="LOGO" alt="Apple logo" /></figure>
        <h2 class="visuallyhidden">Apple Stories</h2>
        <div class="subheading">创作者、开发者与创新者构建更加美好的世界</div>
      </div>
      <List />
      <div class="view-all-wrapper">
        <a href="#" class="nr-cta-primary-light">查看全部 </a>
      </div>
    </div>
  </section>
</template>
<style scoped lang="less">
.stories-module {
  overflow-x: hidden;
  padding-bottom: 5px;
}
.section-content {
  margin-left: auto;
  margin-right: auto;
  width: 980px;
}
.lockup-stories {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.visuallyhidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
  clip-path: inset(0px 0px 99.9% 99.9%);
  overflow: hidden;
  height: 1px;
  width: 1px;
  padding: 0;
  border: 0;
}

.stories-module {
  margin-top: 80px;
  margin-bottom: 75px;
  .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lockup-stories {
    .logo {
      width: 10.41176em;
    }
  }
}

//按钮
.view-all-wrapper {
  margin-top: 40px;
}
.nr-cta-primary-light {
  border-radius: 30px;
  display: inline-block;
  transition: background-color 300ms cubic-bezier(0.4, 0, 0.25, 1) 0ms,
    border-color 300ms cubic-bezier(0.4, 0, 0.25, 1) 0ms,
    color 300ms cubic-bezier(0.4, 0, 0.25, 1) 0ms;
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: -0.022em;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
    "Arial", sans-serif;
  border: 2px solid;
  border-top-color: currentcolor;
  border-right-color: currentcolor;
  border-bottom-color: currentcolor;
  border-left-color: currentcolor;
  padding: 10px 24px 9px;
  border-color: #1d1d1f;
  color: #161617;
}
@media (hover: hover) {
  .nr-cta-primary-light:hover {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #f5f5f7;
  }
}
</style>
